# jinja2 模板

from flask import Flask,render_template

app = Flask(__name__)

@app.route('/index')
def index():
    data = {
        "name" : "张三",
        "list" : [1,2,3]
    }
    return render_template('index2.html',data=data)

if __name__ == '__main__':
    app.run()